/*
 * Copyright (C) 2015-2018 EPAM Systems
 *
 * This file is part of Indigo ELN.
 *
 * Indigo ELN is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Indigo ELN is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Indigo ELN.  If not, see <http://www.gnu.org/licenses/>.
 *
 */

@import "../../../../assets/less/component-base";

linked-experiments {
  .ui-select-multiple.ui-select-bootstrap {
    height: auto;
  }
  .ui-select-placeholder {
    &.text-muted {
      color: @gray-little-clarified;
    }
  }

  .ui-select-multiple.ui-select-bootstrap input.ui-select-search{
    .placeholder(@gray-little-clarified);
  }

  .ui-select-no-choice {
    padding: 6px;
  }

  .ui-select-match {
    > span {
      margin-right: 0;

      + span {
        margin-left: 3px;
      }
    }
    .ui-select-match-item.btn {
      text-decoration: underline;
      color: blue;
      cursor: pointer;
      background-image: none;
      background-color: @tag-list-bg;
      .border-radius(@border-radius);
      font-family: inherit;
      padding: @tag-list-pad;
      font-size: @tag-list-size;

      .ui-select-match-close {
        color: #999;
        font-weight: normal;
      }
    }
  }

  .ui-select-container {
    border-color: @border-color;
    box-shadow: none;
    -webkit-appearance: none;

    &.focused {
      border-color: @brand2;
      box-shadow: none;
    }
  }

  .ui-select-bootstrap .ui-select-choices-row > a {
    padding: 5px 10px;
    cursor: pointer;
    font: 16px "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #000;
    background-color: #fff;

    &:hover {
      background-color: @brand3;
    }
  }
  .ui-select-multiple.ui-select-bootstrap {
    .ui-select-match-item {
      margin-right: 0;
    }
  }
  .ui-select-choices-row {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ui-select-choices {
    margin: 0;
    padding: 0;
    margin-top: 5px;
    list-style-type: none;
    max-height: 280px;
    overflow-y: auto;
    background-color: @white;
    border: 1px solid rgba(0, 0, 0, .2);
    box-shadow: 0 5px 10px rgba(0, 0, 0, .2);

    // Workaround for https://github.com/angular-ui/ui-select/issues/1863
    opacity: 1 !important;
  }
}
